#include "vector.h"
#include <iostream>
using namespace std;

int main()
{
	ssy::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	for (auto ch : v)
	{
		cout << ch << " ";
	}
	cout << endl;
	v.resize(40,10);
	//for (int i = 0; i < 40; i++)
	//{
	//	v[i] = i;
	//}
	for (auto ch : v)
	{
		cout << ch << " ";
	}
	cout << endl;

	v.resize(10);
	for (auto ch : v)
	{
		cout << ch << " ";
	}
	cout << endl;

	v.erase(v.insert(v.begin() + 1, 666) + 1);
	for (auto ch : v)
	{
		cout << ch << " ";
	}
	cout << endl;

	v.insert(v.begin(), 661);
	v.insert(v.begin() + 1, 662);
	v.insert(v.begin() + 2, 663);
	v.insert(v.begin() + 4, 665);
	v.insert(v.end(), 6666);
	v.insert(v.end(), 6666);

	for (auto ch : v)
	{
		cout << ch << " ";
	}
	cout << endl;

	v.erase(v.begin());
	v.erase(v.begin());
	v.erase(v.begin());
	v.erase(v.begin() + 1);
	v.erase(v.end() - 1);
	v.erase(v.end() - 1);
	v.insert(v.end(), 65666);
	for (auto ch : v)
	{
		cout << ch << " ";
	}
	cout << endl;

	ssy::vector<int> v2(v.begin(), v.end());
	for (auto ch : v2)
	{
		cout << ch << " ";
	}
	cout << endl;


	v.resize(10);
	v.resize(20, 999);
	for (auto ch : v)
	{
		cout << ch << " ";
	}
	cout << endl;
	return 0;
}